package com.tqjc.system.common.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @description:任务指令类型
 * @Author: 86195
 * @Date: 2024/1/24 14:16
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum OrderTypeEnum {


    ORDER_TYPE_SUCK("1","吸料"),

    ORDER_TYPE_PUT("2","放料"),

    ORDER_TYPE_MOVE("3","避让");

    private String orderType;

    private String desc;


    public static String getDescByOrderType(String orderType){
        for (OrderTypeEnum value : OrderTypeEnum.values()) {
            if(value.orderType.equals(orderType)){
                return value.desc;
            }
        }

        return "暂无";
    }
}
